<include file="Public/header"/>
<div class="x-body">
    <form class="layui-form" action="{:U('update')}" method="post">
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red"></span>所属规格组
            </label>
            <div class="layui-input-inline">
                <select name="attr_group_id">
                    <volist name="list" id="vo">
                        <option value="{$key}" <php>if($data['attr_group_id'] == $key) echo 'selected'</php>>{$vo}</option>
                    </volist>

                </select>
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red"></span>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>规格名称
            </label>
            <div class="layui-input-inline">
                <input type="text" id="attr_name" name="attr_name" required="" lay-verify="required"
                       autocomplete="off" value="{$data['attr_name']}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red"></span>
            </div>
        </div>





        <input type="hidden" name="id"  value="{$data['id']}">




        <div class="layui-form-item">
            <label for="L_repass" class="layui-form-label">
            </label>
            <button  class="layui-btn" lay-filter="submit" lay-submit="submit">
                保存
            </button>
        </div>
    </form>
</div>
<script>



</script>
<include file="Public/footer"/>